package com.guigu.equipmentservice.feign;

import com.guigu.userservice.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(name = "service-user")
public interface MyUserFeign {

    //根据用户id修改用户状态
    @PutMapping("/user/usercon/updateUserStatus/{id}")
    User updateUserStatus(@PathVariable("id") Long id);
    //根据用户id查询用户
    @GetMapping("/user/usercon/selectUserById/{id}")
    User selectUserById(@PathVariable("id") Long id);



}
